package org.apollo.sqlite.sql.delete;

import org.apollo.sqlite.core.SqliteContext;

public class SqlDelete implements Delete {

	private StringBuilder sqlBuilder = new StringBuilder();
	
	private String tableName;;

	public SqlDelete(String tableName) {
		this.tableName = tableName;
	}

	@Override
	public DeleteConst delete() {
		sqlBuilder.append("DELETE FROM " + SqliteContext.getTable(tableName));
		return new SqlDeleteConst(sqlBuilder);
	}

}
